import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersiststate from 'pinia-plugin-persistedstate'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import VueLatex from 'vatex'

const app = createApp(App)


import Fold from './views/Fold.vue'
import CheckBox from './views/CheckBox.vue'
app.component('FoldBox', Fold);
app.component('ctcheckbox', CheckBox);



for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}



const pinia = createPinia()
pinia.use(piniaPluginPersiststate)
app.use(pinia)
app.use(ElementPlus)
app.use(router)
app.use(VueLatex)


app.mount('#app')
